<me:UIHR x:Class="WPFExcelReport.THRITX"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                      x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIHR.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIHR.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
            <WrapPanel Margin="10,10,0,0"> 
                <TextBlock Text="{Binding HRITPNR}" />
                <TextBlock Text="{Binding HRBENID}" />
                <Grid Margin="10,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=语言V/E:}}"/>
                    <ex:TXT72 Grid.Column="1"  
                              MaxLength="1"
                              Text="{Binding HRSPRKZ, Converter={StaticResource ResourceKey=gb2312}}" 
                                  IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"
                              Width="20" />
                </Grid>
                <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=姓名:}}"/>
                        <ex:TXT72 Grid.Column="1"  
                              MaxLength="40"
                              Text="{Binding HRVNAME, Converter={StaticResource ResourceKey=gb2312}}" 
                                  IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"
                              Width="100" />
                    </Grid>
                 
                    <Grid Margin="10,0,0,0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=电话:}}"/>
                        <ex:TXT72 Grid.Column="1"  
                              MaxLength="20"
                              Text="{Binding HRDTELH, Converter={StaticResource ResourceKey=gb2312}}" 
                                  IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"
                              Width="100" />
                    </Grid>
               
                    <Grid Margin="10,0,0,0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=邮件:}}"/>
                        <ex:TXT72 Grid.Column="1"  
                              MaxLength="100"
                              Text="{Binding HRDMAILADR, Converter={StaticResource ResourceKey=gb2312}}" 
                                  IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"
                              Width="30" />
                    </Grid>
              
                
            </WrapPanel>
            <WrapPanel Margin="10,10,0,0">
               
                    <Grid Margin="10,0,0,0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=地址:}}"/>
                        <ex:TXT72 Grid.Column="1"  
                              MaxLength="40"
                              Text="{Binding HRSTRASSE, Converter={StaticResource ResourceKey=gb2312}}" 
                                  IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"
                              Width="150" />
                    </Grid>
                
                    <Grid Margin="10,0,0,0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=其他编号:}}"/>
                        <ex:TXT72 Grid.Column="1"  
                              MaxLength="40"
                              Text="{Binding HRGNAME, Converter={StaticResource ResourceKey=gb2312}}" 
                                  IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"
                              Width="150" />
                    </Grid> 
            </WrapPanel>
        </StackPanel>
    </Grid>
</me:UIHR>
